<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%
	//Map map = (HashMap)request.getAttribute("mode");  
	//out.println(map.get("1"));
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'monitor.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<style type="text/css">
body {
	margin-top: "50px"
}
</style>
</head>

<body>

	<table align="center" width="500" height="300" cellpadding="1"
		border="1" class="midtable">
		<tr>

			<td width="50">1</td>
			<td><c:choose>
					<c:when test="${!empty  mode[0]}">
						<c:out value=" ${mode[0]}" />
					</c:when>
					<c:otherwise>
        No comment sir...
    </c:otherwise>
				</c:choose></td>

		</tr>
		<tr>

			<td>2</td>
			<td><c:choose>
					<c:when test="${!empty  mode[1]}">
						<c:out value=" ${mode[1]}" />
					</c:when>
					<c:otherwise>
        No comment sir...
    </c:otherwise>
				</c:choose></td>

		</tr>
		<tr>

			<td>3</td>
			<td><c:choose>
					<c:when test="${!empty  mode[2]}">
						<c:out value=" ${mode[2]}" />
					</c:when>
					<c:otherwise>
        No comment sir...
    </c:otherwise>
				</c:choose>
			</td>

		</tr>
		<tr>

			<td>4</td>
			<td><c:choose>
					<c:when test="${!empty  mode[3]}">
						<c:out value=" ${mode[3]}" />
					</c:when>
					<c:otherwise>
        No comment sir...
    </c:otherwise>
				</c:choose>
			</td>

		</tr>
		<tr>

			<td>5</td>
			<td><c:choose>
					<c:when test="${!empty  mode[4]}">
						<c:out value=" ${mode[4]}" />
					</c:when>
					<c:otherwise>
        No comment sir...
    </c:otherwise>
				</c:choose>
			</td>

		</tr>
	</table>



	<jsp:useBean id="now" class="java.util.Date"></jsp:useBean>
	<fmt:setLocale value="zh_CN" />
	<fmt:formatDate value="${now}" type="both" dateStyle="full"
		timeStyle="full" />
	<br>

</body>
</html>


